package com.senjoeson.abilityservice.service;

import android.content.Context;
import android.view.accessibility.AccessibilityEvent;

import androidx.annotation.CallSuper;

import com.senjoeson.abilityservice.ControlPanel;

/**
 * @USER senjoeson
 * @DATE 2021/1/30 11:03 下午
 * @Desc
 **/
public class AutoAccessibilityService extends StubAbilityService {

    private ControlPanel controlPanel;

    @Override
    public void hookOnServiceConnected() {
        controlPanel = ControlPanel.getInstance(this);
        controlPanel.createPanel();
        controlPanel.bindService(this);
    }

    public Context getContext() {
        return this;
    }

    @Override
    @CallSuper
    public void onAccessibilityEvent(AccessibilityEvent event) {

    }
}
